home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 July / Chip_2003-07_cd1.bin / oddech / srp / Stress Relief Paintball.exe / scripts / frame_159 / DoAction.as
Text File  |  2002-07-26  |  502b  |  24 lines

  1. if(random(30 - level) == 5)
  2. {
  3.    srand = random(14) + 1;
  4.    eval("ball" + srand).play();
  5. }
  6. gunFrame = Math.round(_xmouse / 114) + 1;
  7. gun.gotoAndStop(gunFrame);
  8. timer -= 1 / frRate;
  9. STpanel.time = "Time: " + Math.round(timer);
  10. STpanel.points = "Score: " + score;
  11. STpanel.hits = "Hits: " + hits;
  12. Bpanel.bullets = "Shots: " + shots;
  13. if(0 >= Math.round(timer))
  14. {
  15.    gotoAndPlay(167);
  16. }
  17. if(0 >= shots)
  18. {
  19.    play();
  20.    set(undefined,undefined);
  21.    shots = 0;
  22.    ┬º┬ºpush("blnFire");
  23. }
  24.